#include <iostream>
#include <iomanip>

using namespace std;

int main_0021(void)
{
    double x = 0;

    cin >> x;

    double bonuses = 0.0;

    if ( x >= 1e6) {
        bonuses += (x - 1e6) * 0.01;
        x = 1e6;
    }

    if (x >= 6e5) {
        bonuses += (x - 6e5) * 0.015;
        x = 6e5;
    }

    if (x >= 4e5) {
        bonuses += (x - 4e5) * 0.03;
        x = 4e5;
    }

    if (x >= 2e5) {
        bonuses += (x - 2e5) * 0.05;
        x = 2e5;
    }

    if (x >= 1e5) {
        bonuses += (x - 1e5) * 0.075;
        x = 1e5;
    }

    bonuses += x * 0.1;

    cout << fixed << setprecision(3) << bonuses;

    return 0;
}
